/**
 * Generate time : 2011-11-15 4:24:35
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLTernateFeedback table comment : 三违反馈
 */
public class ZMCLTernateFeedback extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdTernateRecordId = " "; /* 三违记录ID */
	private String fdTernateHandleId = " "; /* 处理记录ID */
	private String fdFeedback = " "; /* 三违反馈 */
	private String fdFeedbackDate = " "; /* 反馈日期 */
	private String fdFeedbackor = " "; /* 反馈人ID */
	private String fdCreateTime = " "; /* 创建时间 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTernateRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTernateHandleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("处理记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedback");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("三违反馈");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("反馈日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackor");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLTernateFeedback() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdTernateRecordId - 三违记录ID
	 * 
	 * @return the fdTernateRecordId
	 */
	public String getFdTernateRecordId() {
		return this.fdTernateRecordId;
	}

	/**
	 * set the fdTernateRecordId - 三违记录ID
	 */
	public void setFdTernateRecordId(String fdTernateRecordId) {
		this.fdTernateRecordId = fdTernateRecordId;
	}

	/**
	 * get the fdTernateHandleId - 处理记录ID
	 * 
	 * @return the fdTernateHandleId
	 */
	public String getFdTernateHandleId() {
		return this.fdTernateHandleId;
	}

	/**
	 * set the fdTernateHandleId - 处理记录ID
	 */
	public void setFdTernateHandleId(String fdTernateHandleId) {
		this.fdTernateHandleId = fdTernateHandleId;
	}

	/**
	 * get the fdFeedback - 三违反馈
	 * 
	 * @return the fdFeedback
	 */
	public String getFdFeedback() {
		return this.fdFeedback;
	}

	/**
	 * set the fdFeedback - 三违反馈
	 */
	public void setFdFeedback(String fdFeedback) {
		this.fdFeedback = fdFeedback;
	}

	/**
	 * get the fdFeedbackDate - 反馈日期
	 * 
	 * @return the fdFeedbackDate
	 */
	public String getFdFeedbackDate() {
		return this.fdFeedbackDate;
	}

	/**
	 * set the fdFeedbackDate - 反馈日期
	 */
	public void setFdFeedbackDate(String fdFeedbackDate) {
		this.fdFeedbackDate = fdFeedbackDate;
	}

	/**
	 * get the fdFeedbackor - 反馈人ID
	 * 
	 * @return the fdFeedbackor
	 */
	public String getFdFeedbackor() {
		return this.fdFeedbackor;
	}

	/**
	 * set the fdFeedbackor - 反馈人ID
	 */
	public void setFdFeedbackor(String fdFeedbackor) {
		this.fdFeedbackor = fdFeedbackor;
	}

	/**
	 * get the fdCreateTime - 创建时间
	 * 
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}

	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdTernateRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateRecordId")), fdTernateRecordId));
		setFdTernateHandleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateHandleId")), fdTernateHandleId));
		setFdFeedback(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedback")), fdFeedback));
		setFdFeedbackDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackDate")), fdFeedbackDate));
		setFdFeedbackor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackor")), fdFeedbackor));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdTernateRecordId", StringUtils.toString(fdTernateRecordId, eiMetadata.getMeta("fdTernateRecordId")));
		map.put("fdTernateHandleId", StringUtils.toString(fdTernateHandleId, eiMetadata.getMeta("fdTernateHandleId")));
		map.put("fdFeedback", StringUtils.toString(fdFeedback, eiMetadata.getMeta("fdFeedback")));
		map.put("fdFeedbackDate", StringUtils.toString(fdFeedbackDate, eiMetadata.getMeta("fdFeedbackDate")));
		map.put("fdFeedbackor", StringUtils.toString(fdFeedbackor, eiMetadata.getMeta("fdFeedbackor")));
		map.put("fdCreateTime", StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));

		return map;

	}
}